<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>节点</title>
	<style type="text/css">
	.box{
		height: 200px;
		width: 200px;
		background: blue;
	}

	</style>
	<script type="text/javascript">
	window.onload=function(){
		box=document.getElementById('box');
		btn=document.getElementById('btn');
		btn.onclick=function(){
			a=document.createElement('a');
			a.href="http://www.baidu.com";
			a.innerHTML='百度';
			box.appendChild(a);

		}
		
	}  


	</script>
</head>
<body>
<input type="button" id='btn' value="增加" />
<div id="box" class="box"></div>
	
</body>
</html>